//
//  ExhibitMainModel.m
//  ArtDog
//
//  Created by dllo on 16/9/8.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ExhibitMainModel.h"
#import "ExhibitArtist.h"

@implementation ExhibitMainModel

- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"exhibitArtistList"]) {
        NSMutableArray<ExhibitArtist *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            ExhibitArtist *exhibitModel = [ExhibitArtist modelWithDic:dic];
            [array addObject:exhibitModel];
        }
        _exhibitArtistList = array;
    }
}

@end
